#@adminLayout()
#define main()
<div class="card">
    <div class="card-header">
        <h2 class="card-title">设备调试</h2>
    </div>

    <div class="card-block">
        <div class="row">
            <div class="col-4">
                <div class="row">
                    <div class="col-6">在线设备:<select class="select2" id="device">
                            <option value="">请选择</option>
                            #for(x:list)
                            <option value="#(x.bsId)">#(x.code)-#(x.name)</option>
                            #end
                        </select>
                    </div>
                    <div class="col-6">
                        <button class="btn btn-primary" id="btn_debug">开启调试</button>
                    </div>
                </div>
            </div>
            <div class="col-8">
                <div id="debug_msg">
                    <div class="listview" style="height: 300px;overflow-y: scroll;">


                    </div>
                </div>
            </div>
        </div>
        
    </div>
</div>
#end
<style>
    .listview__item {
        padding: 5px 2.1rem;
    }
</style>
<script src="/assets/app/table.js?v=#(resource_version)"></script>
<script>

    $(function ($) {
        $("#btn_debug").click(function () {

            $.get("/admin/ciis/devicetest/openDebug?bsId="+$("#device").val(),{},function (result) {
               showMsg(0,'调试模式开启成功');
               $(".listview").html('');
            });
        });
    });
</script>

